package cn.edu.seu.ssny.service;


import cn.edu.seu.ssny.entity.EquipmentType;
import cn.edu.seu.ssny.entity.EquipmentTypeInProject;
import cn.edu.seu.ssny.entity.Project;
import cn.edu.seu.ssny.service.support.IBaseService;

import java.util.List;
import java.util.Optional;

public interface IEquipmentTypeInProjectService extends IBaseService<EquipmentTypeInProject,Integer> {
    Optional<EquipmentTypeInProject> findByProjectAndTypeName(Project project, EquipmentType equipmentType);

    List<EquipmentTypeInProject> findByProject(Project project);

    void create(Project project, EquipmentType equipmentType);
}

